<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix = "c"  uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html lang="en-US">
  <head>
    <link rel="stylesheet" href="css/jquery.wysiwyg.css" type="text/css" media="screen" charset="utf-8" />
	<link rel="stylesheet" type="text/css"  href="css/bootstrap.min.css"/>
	<title>凯胜项目管理系统</title>
	<style type="text/css">
		body{
			padding-top:70px;
		}
	</style>

  </head>
  
  <body class="body">
	<%@include file="same2.jsp" %>
	
	<div class="container">
		<div class="row">
			<%@include file="same.jsp" %>
			<div class="span9" >
				
				<c:choose>
					<c:when test="${param.code == 1002 }">
						<div class = "modal hide " style = "dispaly:inline;" id="mymodal2" >
							<div class = "modal-body" style = "text-align:center;height:80px;margin-top:50px">
									<div ><img alt="" src="img/file_success.png">资料已分享成功！ 是否继续分享新资料？</div>
									<div ></div>
								
							</div>
							<div class = "modal-footer">
								
								<a href="#" class = "btn btn-primary" data-dismiss = "modal">是</a>
								<a href="document.jspx" class = "btn" >否</a>
							</div>
						</div>
					</c:when>
				</c:choose>
				<div class="clear"></div>
				<form class="form-inline" method = "post" action = "document.jspx?method=toNewDocument">
						<fieldset>
							<legend style = "dispaly:inline">分享新资料</legend>
							
						<div class="control-group">
							<label class="control-label" for="input01">标题</label>
							<div class="controls" style = "width:400px">
								<input name = "title" type="text" class="span9" id="input01">
							</div>
						</div>
						<div class="control-group">
							<label class="control-label" for="input01">项目描述</label>
							<div class="controls" >
								<textarea id = "editor" name = "content"  class="span9"  id="input01" rows="15"></textarea>
							</div>
						</div>	
						<button class="btn" onclick="location.back()">选择本地文件</button>											
						<div class="form-actions">
							<button type="submit" class="btn btn-primary">保存</button>
							<button class="btn" onclick="location.back()">返回</button>
							
					  </div>
						</fieldset>
					</form>
				
			</div>
			</div>
	
</div>	
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src = "js/bootstrap.min.js"></script>
	<script src="js/jquery.wysiwyg.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/default.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#myid li").eq(4).addClass("active");
			$("#myid i").eq(2).addClass("icon-white");
			$("#mymodal2").modal("show");
			$("#editor").wysiwyg({autoGrow:true, controls:"bold,italic,underline,strikeThrough,|,undo,redo,|,indent,outdent,|,justifyLeft,justifyCenter,justifyRight,justifyFull,|,insertOrderedList,insertUnorderedList,insertHorizontalRule,|,h1,h2,h3,|,insertTable"});
			
			//$(".in").css("opacity","0.8");
		});
		
	</script>	
</body>
</html>
